// #ifndef __INF_ES8311_H__
// #define __INF_ES8311_H__

// #endif /* __INF_ES8311_H__ */

#pragma once

#include "Inf_QMI8658A.h"
#include "sdkconfig.h"

/* Example configurations */
#define EXAMPLE_RECV_BUF_SIZE (2400)
#define EXAMPLE_SAMPLE_RATE (16000)
#define EXAMPLE_MCLK_MULTIPLE (384) // If not using 24-bit data width, 256 should be enough
#define EXAMPLE_MCLK_FREQ_HZ (EXAMPLE_SAMPLE_RATE * EXAMPLE_MCLK_MULTIPLE)
#define EXAMPLE_VOICE_VOLUME 80

/// I2S配置
#define I2S_NUM (I2S_NUM_0)
#define I2S_MCK_IO (GPIO_NUM_38)
#define I2S_BCK_IO (GPIO_NUM_14)
#define I2S_WS_IO (GPIO_NUM_13)
#define I2S_DO_IO (GPIO_NUM_45)
#define I2S_DI_IO (-1)

// 初始化
void Inf_ES8311_Init(void);